﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SalaryMonthEnd.aspx.cs"
    Inherits="UI.ModSalary.SalaryMonthEnd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>月结处理</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript">
        //将回车键改为tab键//
        document.onkeydown = function (event) {
            try {
                var evt = null;
                if (arguments.length == 1) {
                    evt = arguments[0];
                } else {
                    evt = (window.event ? window.event : null);
                }
                if (evt.charCode) {
                    if (evt.charCode == 13) {
                        var el = evt.srcElement || evt.target;
                        if (el) {
                            evt.charCode = 9;
                        }
                    }
                } else {
                    if (evt.keyCode == 13) {
                        var el = evt.srcElement || evt.target;
                        if (el) {
                            evt.keyCode = 9;
                        }
                    }
                }
            } catch (e) { }
        }
    </script>
    <style type="text/css">
        .style1
        {
            height: 25px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            <b>月结处理</b></div>
        <div class="pagetopright">
        <asp:Button ID="btnBankFormat" runat="server" Text="设置银行代发格式" CssClass="ButtonCss"         />
        </div>
    </div>
   
   <table border="1px" style="width:100%; border-collapse:separate; border-color:Black; ">

     <tr>
     <td valign="top">
        <table style="width: 60%;" align="center" class="td">
            <tr>
                <td class="style1">
                    工资年
                </td>
                <td class="style1">
                    <asp:DropDownList ID="ddlYear" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
                    年
                </td>
            </tr>
            <tr>
                <td class="style1">
                    工资月
                </td>
                <td>
                    <asp:DropDownList ID="ddlMonth" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
                    月
                </td>
            </tr>
            <tr>
                <td class="style1">
                    帐套
                </td>
                <td>
                    <asp:DropDownList ID="ddlSetsID" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <p style="text-align: center;">
            <asp:Button ID="btnAdd" runat="server" Text="结账" OnClick="btnAdd_Click" CssClass="ButtonCss"
                OnClientClick="return confirm('确定要结账吗?\n');" />
            &nbsp;<asp:Button ID="btnReAdd" runat="server" Text="反结账" OnClick="btnReAdd_Click"
                CssClass="ButtonCss" OnClientClick="return confirm('确定要反结账吗?\n');" />&nbsp;<asp:Button
                    ID="btnBank" runat="server" Text="银行代发" OnClick="btnBank_Click" OnClientClick="return confirm('确定已经结账了吗?\n');"
                    CssClass="ButtonCss" />
            &nbsp;<asp:Button ID="btnPrint" runat="server" Text="打印工资条" CssClass="ButtonCss"
                OnClick="btnPrint_Click" />&nbsp;                
                <asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click"
                    Text=" 关闭 " TabIndex="17" CausesValidation="False"  CssClass="ButtonCss" />
            &nbsp;&nbsp;&nbsp;
        </p>
        <p style="text-align: center;">
            <br />
            代发格式
            <asp:TextBox ID="txtFileFormat" runat="server" CssClass="InputCss" Width="260px"
                onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            <asp:Button ID="btnConfigFile" runat="server" CssClass="ButtonCss" Text=" 设置 " OnClick="btnConfigFile_Click" />
            &nbsp;</p>
        <p style="text-align: center;">
            &nbsp;</p>
        <p style="text-align: center;">
            代发格式可用字段：序号,银行账号,姓名,年,月,身份证号,入职日期;<br />
            定义的帐套项目之名称;<br />
            分隔符可为, | 空格等等<br />
            工资都设定好之后请结账，结账之后才能进行银行代发<br />
        </p>
     </td>
     <td style="width:200px; vertical-align:top;">
  <br />
         <asp:Panel ID="plContent" runat="server" Height="420px">
             <asp:GridView ID="gvList" runat="server" Width="100%" 
                 AutoGenerateColumns="False">
             <Columns>

                  <asp:TemplateField HeaderText="日期"  ItemStyle-HorizontalAlign="Center" SortExpression="SalYear">
                    <ItemTemplate>                        
                            <%# Eval("SalYear")%>-<%# Eval("SalMonth")%>
                    </ItemTemplate>
                </asp:TemplateField>
                  <asp:BoundField DataField="Statu" HeaderText="发放" ItemStyle-HorizontalAlign="Center" SortExpression="Statu" />
                </Columns>

             </asp:GridView>


         </asp:Panel>
       </td>
     </tr>
     </table>
    </form>
</body>
</html>
